[#include "/main/mainTemplate.ftl"]
[@main title="警告框"]

<!-- Button to trigger confirm -->
<button onclick="test();">confirm</button>

<script type="text/javascript">
function test() {
    var confirm = $.scojs_confirm({
    	content: "Oh, noes, you really want to delete me?",
    	action: function() {
    		// 点击 yes 调用方法
	    	this.close();
	    }
    });
    confirm.show();
    }
</script>

[/@main]